package com.platform.qujia.service.impl;

import com.platform.qujia.dao.GradeMapper;
import com.platform.qujia.pojo.Grade;
import com.platform.qujia.service.GradeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("gradeService")
public class GradeServiceImpl implements GradeService {
    @Resource
    private GradeMapper gradeMapper;

    @Override
    public Grade selectGradeById(Long gradeId) {
        return gradeMapper.selectGradeById(gradeId);
    }

    @Override
    public List<Grade> selectUserGrade(Grade grade) {
        return gradeMapper.selectUserGrade(grade);
    }

    @Override
    public List<Grade> selectGradeList(Grade grade) {
        return gradeMapper.selectGradeList(grade);
    }

    @Override
    public int insertGrade(Grade grade) {
        return gradeMapper.insertGrade(grade);
    }

    @Override
    public int updateGrade(Grade grade) {
        return gradeMapper.updateGrade(grade);
    }

    @Override
    public int deleteGradeById(Long gradeId) {
        return gradeMapper.deleteGradeById(gradeId);
    }

    @Override
    public int deleteGradeByIds(Long[] gradeIds) {
        return gradeMapper.deleteGradeByIds(gradeIds);
    }
}
